'''
Created on Jan 22, 2010

@author: christianp
'''
import unittest
from BruTile.TileInfo import TileInfo
from BruTile.Extent import Extent

class UTileInfo(unittest.TestCase):

    tile_info = TileInfo()

    def test_getters_setters(self):
        print("UTileInfo: test_getters_setters")
        extent = Extent(0,0,50,50)
        tile_key = 1,2,3
        
        self.tile_info.set_extent(extent)
        self.tile_info.set_priority(5.5)
        self.tile_info.set_key(1,2,3)
        
        self.assertEqual(self.tile_info.get_extent(), extent, "tile_info.get_extent()")
        self.assertEqual(self.tile_info.get_proirity(), 5.5, "tile_info.get_proirity()")
        self.assertEqual(self.tile_info.get_key(), tile_key, "self.tile_info.get_tile_key()")
        pass

if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.test_getters_setters']
    unittest.main()